package com.hezhi.project.module.teacher.mapper;

import com.hezhi.project.module.teacher.domain.Teacher;
import java.util.List;	

/**
 * 教师 数据层
 * 
 * @author hezhi
 * @date 2018-08-17
 */
public interface TeacherMapper 
{
	/**
     * 查询教师信息
     * 
     * @param teacherNumber 教师ID
     * @return 教师信息
     */
	public Teacher selectTeacherById(String teacherNumber);
	
	/**
     * 查询教师列表
     * 
     * @param teacher 教师信息
     * @return 教师集合
     */
	public List<Teacher> selectTeacherList(Teacher teacher);
	
	/**
     * 新增教师
     * 
     * @param teacher 教师信息
     * @return 结果
     */
	public int insertTeacher(Teacher teacher);
	
	/**
     * 修改教师
     * 
     * @param teacher 教师信息
     * @return 结果
     */
	public int updateTeacher(Teacher teacher);
	
	/**
     * 批量删除教师
     * 
     * @param teacherNumbers 需要删除的数据ID
     * @return 结果
     */
	public int deleteTeacherByIds(String[] teacherNumbers);
	
	public Teacher selectTeacherByOpenId(Teacher teacher);
	
	public int updateTeacherByTelphone(Teacher teacher);
	
	
}